package com.sunjs.model.base;

public class BaseCom {

	private Integer id;
	private Integer pageIndex = 1;
	private Integer pageOffset;
	private Integer pageSize = 10;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	public Integer getPageOffset() {
		pageOffset = (pageIndex - 1) * pageSize;
		return pageOffset;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
